package com.pc.tas.page;

import java.util.List;

public class PageService {
	private PageMapper cm;
	
	public void insert(Page page) {
		cm.insert(page);
	}
	
	public void update(Page page){
		cm.update(page);
	}
	
	public void delete(String id){
		cm.delete(id);
	}
	
	public Page getById(String id) {
		return cm.getById(id);
	}
	
	public List<Page> getByParentId(String parentId) {
		return cm.getByParentId(parentId);
	}
	
	public void setCm(PageMapper cm) {
		this.cm = cm;
	}
	
}
